package com.wcards.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wcards.config.R;
import com.wcards.dto.GoodsDTO;
import com.wcards.entity.AdoptApplicationInfo;
import com.wcards.entity.Goods;

public interface GoodsService extends IService<Goods> {
    //新增商品接口
    R<String> createGoods(GoodsDTO goodsDTO);
    //删除商品
    R<String> deleteGoods(Integer id);
    //修改商品
    R<String> updateGoods(GoodsDTO goodsDTO);

    R<Page<Goods>> findGoods(GoodsDTO goodsDTO, Integer pageSize, Integer pageNumber);
}
